package com.zhou.message.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author lang.zhou
 * @since 2023/3/1
 */

@Data
@ApiModel("消息模板保存模型")
public class MessageTemplateSaveDto implements Serializable {

    @ApiModelProperty("模板id")
    private Integer id;

    @ApiModelProperty("模板代码")
    @NotBlank
    private String code;

    @ApiModelProperty("模板名称")
    @NotBlank
    private String name;

    @ApiModelProperty("模板分类")
    private String catalog;

    @ApiModelProperty("重要度")
    private Integer level;

    @ApiModelProperty("发送类型")
    @NotNull
    private Integer sendMode;

    @ApiModelProperty("标题")
    @NotBlank
    private String title;

    @ApiModelProperty("内部消息模板")
    private String content;

    @ApiModelProperty("邮件内容模板")
    private String mailContent;

    @ApiModelProperty("接收人")
    private List<Integer> orgIds;
}
